package com.spdd.mt.biz.constant;

import com.spdd.mt.common.base.BaseEnum;

/**
 * 美团接口返回状态值
 *
 * @since 2025年04月02日
 */
public enum MtResponseStatus implements BaseEnum<String> {

    SUCCESS("success", "请求成功"),
    FAIL("fail", "请求失败"),
    MAKE_PRE_ORDER_SUCCESS("success", "可以下单"),
    MAKE_PRE_ORDER_FAIL("fail", "不可下单"),
    MAKE_ORDER_SUCCESS("success", "下单成功"),
    MAKE_ORDER_FAIL("fail", "下单失败"),
    ORDER_PROCESSING("processing", "充值中"),
    QUERY_ORDER_SUCCESS("success", "查询成功"),
    QUERY_ORDER_FAIL("fail", "查询失败"),
    PRODUCT_NOT_EXISTS("fail", "商品不存在"),
    INNER_ERROR("fail", "系统内部处理异常"),
    PARAM_ERROR("fail", "参数异常")
    ;

    private final String value;

    private final String desc;

    MtResponseStatus(String value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    @Override
    public String getValue() {
        return value;
    }

    @Override
    public String getDesc() {
        return desc;
    }
}
